<?php

include("./includes/settings.inc");

//Ban-check
mysql_connect($dbserv, $dbuser, $dbpasswd);
mysql_select_db($dbdb);
$res4 = mysql_query("SELECT * FROM enlight_banlist WHERE ip='$_SERVER[REMOTE_ADDR]'");
$bandata = mysql_fetch_row($res4);
if (!empty($bandata)) {
mysql_close();
die("Je bent niet meer welkom, $bandata[1], tot ziens! Reden: $bandata[2]");
}

function compatdetect(){
if(stripos($_SERVER["HTTP_ACCEPT"], "application/xhtml+xml"))
{
header("Content-type:application/xhtml+xml;charset=utf-8");
}
else
{
header("Content-type:text/html;charset=utf-8");
}
header("Vary: Accept");
}
?>